<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2020/1/13
 * Time: 10:50
 */

namespace app\adminapiv3\service;


class ServerMiddleware extends Base
{
    /**
     * @name 中间键列表
     * @param $params
     * @param $type
     * @param $limit
     * @author wx
     * @date time
     */
    function list($params, $type, $limit)
    {
        if($type == 'module'){
            $params['is_module'] = 1;
        }else{
            $params['is_module'] = 0;
            $params['type'] = $type;
        }

        $server = new \app\common\service\ServerMiddleware();
        $list = $server->list($params, $limit);


        return $list;
    }

}